#ifndef __UART_DATA_CLASS_H
#define __UART_DATA_CLASS_H
#include "stm32f10x.h"

typedef enum
{
	WAIT_HEAD = 1,
	WAIT_ADDR = 2,
	WAIT_COM = 3,
	WALT_STA = 4,
	WAIT_DATALEN = 5,
	WAIT_DATA = 6,
	WAIT_TAIL = 7,
	WAIT_BCC = 8
}UART_ENUM_RECV;



typedef struct
{
	uint8_t head;
	uint8_t addr;
	uint8_t com;
	uint8_t datalen;
	uint8_t data[8];
	uint8_t tail;
	uint8_t bcc;
}UART_HCRECV_DATATYPE;



#endif
